package io;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

/**
 * @description: 输出流
 * @author apple
 * @date 2021/9/12 12:39 下午
 * @version 1.0
 */
public class OutputStreamDemo {

    public static void main(String[] args) throws IOException {
        OutputStream out = new FileOutputStream("test.txt");
        out.write('a'); // a
        out.write('!'); // b
        out.close();
    }
}
